//
//  Network.h
//  OR_1
//
//  Created by Luboš Kulič on 6/15/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Network;

@protocol NetworkEventListener 

-(void) network:(Network *)net didFinishLoadingWithResult:(NSData *) data ;

@end


@interface Network : NSObject {
@private NSMutableData * receivedData;
	id<NetworkEventListener> listener;
}

-(void)getData:(NSString *) dataURL notifyEnd:(id<NetworkEventListener>) listener_;


@end
